package com.opo5.logisticsmanagement.service;

import com.opo5.logisticsmanagement.dao.VehicleTasksDao;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class VehicleTestCase {
    @Autowired
    private VehicleTasksDao vehicleTasksDao;
    @Test
    void fun1(){
        List<String> lis = vehicleTasksDao.findAll();
        lis.forEach((i)->{
            System.out.println(i+"------------------");
            System.out.println("year:"+i.substring(0,4));
            System.out.println("mm:"+i.substring(5,7));
            System.out.println("dd:"+i.substring(8,10));
        });
    }
}
